<?php
	include_once 'isLogin.php';
	$action = $_GET['action']!=false?$_GET['action']:'index';
	
	if($action=="index"){
		$title = "后台首页";
	
		$list[] = array("url"=>"right.php","title"=>"后台首页","hover"=>'1');
		$list[] = array("url"=>"xgmm.php","title"=>"修改密码");
		/*$list[] = array("url"=>"banklogo_add.php","title"=>"银行添加");
		$list[] = array("url"=>"service_add.php","title"=>"客服添加");*/
	}
	if($action=="company"){
	    $title = "公司管理";
		$list[] = array("url"=>"company_list.php","title"=>"公司详情管理");
		
	
	}
	if($action=="product"){
	    $title = "商品管理";
	    $list[] = array("url"=>"product_add.php","title"=>"商品添加");
		$list[] = array("url"=>"product_list.php","title"=>"商品列表");
	
	}
	if($action=="order"){
	    $title = "订单管理";
	    $list[] = array("url"=>"order_list.php","title"=>"订单列表");
	
	}
	if($action=="account"){
	    $title = "账务管理";
	    $list[] = array("url"=>"account_list.php","title"=>"财务记录");
		//$list[] = array("url"=>"order_list.php","title"=>"待入账");
	
	}
	if($action=='setting'){
		$title = "网站设置";
	
		$table_name = "explains";
		$sql = $table_name;
		$explains=$commonc->getList($sql,'');
		foreach($explains['result'] as $k=>$v){
			$content[] = array('url'=>'explains.php?id='.$v['id'],'title'=>$v['title']);
		}
		
		$list[] = array("url"=>"set.php?op=info","title"=>"网站信息","hover"=>'1');
		$list[] = array("url"=>"set.php?op=email","title"=>"企业邮箱");
		// $list[] = array("url"=>"javascript:;","title"=>"焦点图管理",
		// 				"content"=>array(
		// 						array("url"=>"focus_list.php?class=index","title"=>"列表"),
		// 						array("url"=>"focus_add.php?class=index","title"=>"添加"),
		// 				)
		// 		);
		// $list[] = array("url"=>"javascript:;","title"=>"网站说明","content"=>$content);
		// $list[] = array("url"=>"keyword.php","title"=>"字典");
	}


	$smarty->assign("title",$title);
	$smarty->assign("list",$list);
	$smarty->display("left.html");
?>